package com.hogan.hoganproject.base.api;

/**
 * Created by chenhu on 2017/8/16.
 */

public class ApiConstant {
    /**
     * https://api.apiopen.top/getJoke?page=1&count=2&type=video  这个对应的数据DataBean
     */
//    public static final String BASE_URL = "https://api.apiopen.top/";
//    public static final String NEWS = BASE_URL + "getJoke";
    /**
     * 聚合数据KEY,通用这个
     * https://v.juhe.cn/toutiao/index?type=top&key=192a2e7da8467d5fd853b29677b373f9
     */
    public static final String API_KEY = "192a2e7da8467d5fd853b29677b373f9";
    public static final String BASE_URL = "https://v.juhe.cn/";
    public static final String NEWS = BASE_URL + "toutiao/index";

    public static final class ServerCode {
        public static final int NET_ERR = -101;
        public static final int SUCCESS = 0;        //访问成功
        public static final int FAIL = 1;           //访问失败
    }
}
